package  entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * ProduceStep entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="produce_step")
public class ProduceStep implements java.io.Serializable {

	// Fields

	private String rowid;
	private String produceId;
	private String stepId;
	private Integer indexnum;
    private String name;
    private Timestamp time;
	// Constructors

	/** default constructor */
	public ProduceStep() {
	}

	/** minimal constructor */
	public ProduceStep(String rowid) {
		this.rowid = rowid;
	}

	/** full constructor */
	public ProduceStep(String rowid, String produceId, String stepId,
			Integer indexnum,String name,Timestamp time) {
		this.rowid = rowid;
		this.produceId = produceId;
		this.stepId = stepId;
		this.indexnum = indexnum;
		this.name=name;
		this.time=time;
	}

	// Property accessors
	@Id
	@GeneratedValue(generator = "system-uuid")  
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name="rowid")
	public String getRowid() {
		return this.rowid;
	}

	public void setRowid(String rowid) {
		this.rowid = rowid;
	}
	@Column(name="produceId")
	public String getProduceId() {
		return this.produceId;
	}

	public void setProduceId(String produceId) {
		this.produceId = produceId;
	}
	@Column(name="stepId")
	public String getStepId() {
		return this.stepId;
	}

	public void setStepId(String stepId) {
		this.stepId = stepId;
	}
	

	@Column(name="name")
	public String getName() {
		return name;
	}
	@Column(name="indexnum")
	public Integer getIndexnum() {
		return indexnum;
	}

	public void setIndexnum(Integer indexnum) {
		this.indexnum = indexnum;
	}

	public void setName(String name) {
		this.name = name;
	}
	@Column(name="time")
	public Timestamp getTime() {
		return time;
	}

	public void setTime(Timestamp time) {
		this.time = time;
	}

}